package com.yehui.bean;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Service;

@Service
public class MyBeanFactoryProcessor implements BeanFactoryPostProcessor {

    public MyBeanFactoryProcessor(){
        System.out.println("MyBeanFactoryProcessor==============");
    }

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        System.out.println("MyBeanFactoryProcessor=================");
    }
}
